package com.lanlian.volleylib.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author xiaobo.hu
 * @date on 2018/08/07 11:53:34
 * @email 834366578@qq.com
 * @version v1.0
 * @describe 请求协议接口
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface HttpReqParam {

    enum HttpReqMethod {
        HTTP_GET, HTTP_POST
    }

    /**
     * 接口Url地址
     **/
    String protocol();

    /**
     * response类型
     **/
    Class<?> responseType();

    /**
     * 协议类型，默认Get
     **/
    HttpReqMethod method() default HttpReqMethod.HTTP_GET;

    /**
     * 缓存过期时间，默认不缓存
     **/
    long expireTime() default 0;

}
